<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkIpWhitelist
 *
 * @ORM\Table(name="tk_ip_whitelist", indexes={@ORM\Index(name="vcc_ag_index", columns={"vcc_id", "ag_id"})})
 * @ORM\Entity
 */
class TkIpWhitelist
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="ag_id", type="integer", nullable=false, options={"comment"="坐席ID，如果未设置，则不针对具体的坐席，如果设置了，则此坐席只能使用此IP才能登录"})
     */
    private $agId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="user_ip", type="string", length=15, nullable=false, options={"comment"="IP地址，只能存储单个IP"})
     */
    private $userIp = '';

    /**
     * @var string
     *
     * @ORM\Column(name="remark", type="string", length=250, nullable=false, options={"comment"="备注"})
     */
    private $remark = '';

    /**
     * @var int
     *
     * @ORM\Column(name="create_user_id", type="integer", nullable=false, options={"comment"="创建人ID"})
     */
    private $createUserId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="create_user_name", type="string", length=150, nullable=false, options={"comment"="创建人名称"})
     */
    private $createUserName = '';

    /**
     * @var int
     *
     * @ORM\Column(name="create_time", type="integer", nullable=false, options={"comment"="创建时间"})
     */
    private $createTime = '0';

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getVccId(): ?int
    {
        return $this->vccId;
    }

    public function setVccId(int $vccId): self
    {
        $this->vccId = $vccId;

        return $this;
    }

    public function getAgId(): ?int
    {
        return $this->agId;
    }

    public function setAgId(int $agId): self
    {
        $this->agId = $agId;

        return $this;
    }

    public function getUserIp(): ?string
    {
        return $this->userIp;
    }

    public function setUserIp(string $userIp): self
    {
        $this->userIp = $userIp;

        return $this;
    }

    public function getRemark(): ?string
    {
        return $this->remark;
    }

    public function setRemark(string $remark): self
    {
        $this->remark = $remark;

        return $this;
    }

    public function getCreateUserId(): ?int
    {
        return $this->createUserId;
    }

    public function setCreateUserId(int $createUserId): self
    {
        $this->createUserId = $createUserId;

        return $this;
    }

    public function getCreateUserName(): ?string
    {
        return $this->createUserName;
    }

    public function setCreateUserName(string $createUserName): self
    {
        $this->createUserName = $createUserName;

        return $this;
    }

    public function getCreateTime(): ?int
    {
        return $this->createTime;
    }

    public function setCreateTime(int $createTime): self
    {
        $this->createTime = $createTime;

        return $this;
    }


}
